package interfacekeyword;

/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214st2215
 * @Package: interfacekeyword
 * @File: CompareObject.java
 * @Time: 2023/3/28 14:25
 * @Author: abcque
 * @Description:
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public interface CompareObject {
    /**
     * 比较两个对象的大小
     * @param o
     * @return 0 相等，1 当前对象大，-1 当前对象小
     */
    public int compareTo (Object o);
}
